//
//  GJUtil.h
//  xmgjAppFront
//
//  Created by Zeki on 2020/7/9.
//  Copyright © 2020 guojutech. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN


@interface GJUtil : NSObject

/// 版本检测
+ (void)checkVersion:(void(^)(BOOL showToast))showToaskBlock;

/// 弹窗导航
/// @param location location
+ (void)openURLMapNavgationLocation:(CLLocationCoordinate2D)location;
/// 是否打开定位权限
+ (BOOL)hasLocationAuthorization;

/// 获取设备型号
+ (NSString *)currentModel;

/// 获取IMS
+ (NSString *)GJ_getIMSI;
/// 本机IP
+ (NSString *)GJ_getGateWay;

///UUID
+ (NSString *)GJ_getUUID;//获取UUID

/// sim卡数量
+ (int)SimCardNumInPhone;

/// 给RN回调发送通知
/// @param actionKey key
/// @param userInfo useinfo
+ (void)sendNotificationForRNEventEmitterWithActionKey:(NSString *)actionKey parameter:(NSDictionary *)parameter;

/// 判断字符串是不是null
/// @param str 字符串
+ (BOOL)GJ_isNull:(NSString *)str;


/// 图片压缩
/// @param image 需要压缩的图片
/// @param maxLength 文件最大大小
+ (UIImage *)compressImage:(UIImage *)image toByte:(NSUInteger)maxLength;
@end

NS_ASSUME_NONNULL_END
